package org.springblade.humanResource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springblade.humanResource.entity.Project;
import org.springblade.humanResource.entity.ZTUser;

import java.util.List;
import java.util.Map;

public interface ProjectMapper extends BaseMapper<Project> {
	List<Map<String, Object>> getHumanResourceList(Map<String, Object> map);

	Integer getHumanResourceCount(Map<String, Object> map);

	List<Map<String, Object>> getTaskHumanList(Map<String, Object> map);

	List<Map<String, Object>> getDeptList();

	List<Map<String, Object>> getBarYData(@Param("months") List<String> months,@Param("deptNames") List<String> deptNames);

	List<Map<String, Object>> getPieData(Map<String, Object> map);

	List<Map<String, Object>> getMonthUserHourRank(Map<String, Object> map);

	List<Map<String, Object>> getUserFreeRank(Map<String, Object> map);

	List<Map<String, Object>> getProjectList(Map<String, Object> map);

	List<ZTUser> getUserList(Map<String, Object> map);

	List<Map<String, Object>> getHrData(Map<String, Object> map);
}
